add
Inserts a value at the specified index. Fails if the provided index is out of bounds.
Since
0.6.0
Parameters
index
The index at which to add the element.
value
The value to add.
Adds an element to the collection.
Return
true
if the element was added, and false
if the collection does not allow duplicates and the element is already contained in the collection.
Since
0.6.0
Parameters
value
The element to add.